<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>字体样式</title>
  <!-- 内部样式 -->
  <style>
    body{
      font-style:italic;
    }
    div{
      /* 字体样式 默认值normal,普通的样式 倾斜italic,inherit 继承 ,默认是可以继承 */
      font-style:inherit;
    }
  </style>
</head>
<body>
  
  <i>倾斜</i>
  <em>倾斜</em>
  <div>字体样式</div>
</body>
</html>